package com.albaba.designpattern.state_pattern.text_003;

/**
 * @Description: 交通灯状态接口
 * @Author zx
 * @Date 2025/2/25 15:52
 * @Version 1.0
 */
public abstract interface State {

    // 切换为绿灯
    void switchToGreen(TrafficLight trafficLight);

    // 切换为黄灯
    void switchToYellow(TrafficLight trafficLight);

    // 切换为红灯
    void switchToRed(TrafficLight trafficLight);



}
